package global

import "fmt"

type Appsettings struct {
	Host     string            `yaml:"host"`
	Port     string            `yaml:"port"`
	DB       string            `yaml:"db"`
	User     string            `yaml:"user"`
	Password string            `yaml:"password"`
	Accounts map[string]string `yaml:"account"`
}

func (s *Appsettings) ToHost() string {
	return fmt.Sprintf("%s:%s", s.Host, s.Port)
}
